import request from '@/utils/request'

export function getPlatformModuleReportList(data) {
    return request({
      url: '/report/interface/platformModuleReportList/',
      method: 'post',
      data
    })
  }


export function getInterfaceList(data) {
  return request({
    url: '/report/interface/list/',
    method: 'post',
    data
  })
}


export function getOriginalInterfaceList(data) {
    return request({
        url: '/migrates/interfaceList/',
        method: 'post',
        data
    })
}

export function getInterfaceDetail(data) {
    return request({
        url: '/report/interface/detail/',
        method: 'post',
        data
      })
}

export function deleteInterface(data) {
    return request({
        url: '/report/interface/delete/',
        method: 'post',
        data
    })
}

export function updateInterface(data) {
    return request({
        url: '/report/interface/update/',
        method: 'post',
        data
    })
}


export function exportInterface(data) {
    return request({
        url: '/report/interface/export/',
        method: 'post',
        data
    })
}

export function queryInterfaceSql(data) {
    return request({
        url: '/report/queryInterfaceSql/',
        method: 'post',
        data
    })
} 




export function getInterfaceFields(data) {
    return request({
        url: '/report/interface/fields/',
        method: 'post',
        data
    })
}



export function getReportData(payload) {
    return request({
        url: '/report/interface/queryData/',
        method: 'post',
        data: payload
    }
    )
}
